import { getPhoneCode, isVerify, phoneIsRegister } from '../../api/services/user'
export default ({
    namespaced: true,
    state: {

    },
    mutations: {

    },
    actions: {
        //验证手机号是否被注册 phoneIsRegister
        async phoneIsRegister(context, phone) {
            const data = await phoneIsRegister(phone)
            console.log(data);
        },

        //发送手机验证码
        async getPhoneCode(context, phone) {
            const data = await getPhoneCode(phone)
            console.log(data);
        },
        //验证验证码是否正确
        async isVerify(context, phone, verify) {
            const data = await isVerify(phone, verify)
            console.log(data);
        },


    },

})
